import { createSSRApp } from "vue"
import App from "./App.vue"
import { createPinia } from "pinia"
import { createPersistedState } from "pinia-plugin-persistedstate"
export function createApp() {
  // 初始化pinia
  const pinia = createPinia()
  pinia.use(createPersistedState())
  const app = createSSRApp(App)
  app.use(pinia)
  return {
    app,
    pinia
  }
}
